package com.lucweb.entity;

import javax.persistence.*;

@Entity
@Table(name = "task_buy", schema = "firesystem", catalog = "")
public class TaskBuy {
    private int id;
    private String companyName;
    private String buyTime;
    private String updown;
    private String jfqzqr;
    private String cldywtddqr;
    private String sbryqr;
    private String buystatus;

    @Id
    @Column(name = "id", nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "companyName", nullable = true, length = 255)
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Basic
    @Column(name = "buyTime", nullable = true, length = 255)
    public String getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(String buyTime) {
        this.buyTime = buyTime;
    }

    @Basic
    @Column(name = "updown", nullable = true, length = 255)
    public String getUpdown() {
        return updown;
    }

    public void setUpdown(String updown) {
        this.updown = updown;
    }

    @Basic
    @Column(name = "jfqzqr", nullable = true, length = 255)
    public String getJfqzqr() {
        return jfqzqr;
    }

    public void setJfqzqr(String jfqzqr) {
        this.jfqzqr = jfqzqr;
    }

    @Basic
    @Column(name = "cldywtddqr", nullable = true, length = 255)
    public String getCldywtddqr() {
        return cldywtddqr;
    }

    public void setCldywtddqr(String cldywtddqr) {
        this.cldywtddqr = cldywtddqr;
    }

    @Basic
    @Column(name = "sbryqr", nullable = true, length = 255)
    public String getSbryqr() {
        return sbryqr;
    }

    public void setSbryqr(String sbryqr) {
        this.sbryqr = sbryqr;
    }

    @Basic
    @Column(name = "buystatus", nullable = true, length = 255)
    public String getBuystatus() {
        return buystatus;
    }

    public void setBuystatus(String buystatus) {
        this.buystatus = buystatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TaskBuy taskBuy = (TaskBuy) o;

        if (id != taskBuy.id) return false;
        if (companyName != null ? !companyName.equals(taskBuy.companyName) : taskBuy.companyName != null) return false;
        if (buyTime != null ? !buyTime.equals(taskBuy.buyTime) : taskBuy.buyTime != null) return false;
        if (updown != null ? !updown.equals(taskBuy.updown) : taskBuy.updown != null) return false;
        if (jfqzqr != null ? !jfqzqr.equals(taskBuy.jfqzqr) : taskBuy.jfqzqr != null) return false;
        if (cldywtddqr != null ? !cldywtddqr.equals(taskBuy.cldywtddqr) : taskBuy.cldywtddqr != null) return false;
        if (sbryqr != null ? !sbryqr.equals(taskBuy.sbryqr) : taskBuy.sbryqr != null) return false;
        if (buystatus != null ? !buystatus.equals(taskBuy.buystatus) : taskBuy.buystatus != null) return false;

        return true;
    }

    @Override
    public String toString() {
        return "TaskBuy{" +
                "id=" + id +
                ", companyName='" + companyName + '\'' +
                ", buyTime='" + buyTime + '\'' +
                ", updown='" + updown + '\'' +
                ", jfqzqr='" + jfqzqr + '\'' +
                ", cldywtddqr='" + cldywtddqr + '\'' +
                ", sbryqr='" + sbryqr + '\'' +
                ", buystatus='" + buystatus + '\'' +
                '}';
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (companyName != null ? companyName.hashCode() : 0);
        result = 31 * result + (buyTime != null ? buyTime.hashCode() : 0);
        result = 31 * result + (updown != null ? updown.hashCode() : 0);
        result = 31 * result + (jfqzqr != null ? jfqzqr.hashCode() : 0);
        result = 31 * result + (cldywtddqr != null ? cldywtddqr.hashCode() : 0);
        result = 31 * result + (sbryqr != null ? sbryqr.hashCode() : 0);
        result = 31 * result + (buystatus != null ? buystatus.hashCode() : 0);
        return result;
    }
}
